package com.cqut.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cqut.dto.LimitShowDTO;
import com.cqut.model.ProcessDetail;

public interface IProcessDetailService {
    boolean save(ProcessDetail processDetail);

    boolean update(ProcessDetail processDetail);

    boolean delete(String processDetailId);

    boolean batchDelete(String[] primaryKeys);

    ProcessDetail findModel(String processDetailId);

    ProcessDetail findModel(String processDetailId, String[] parameters);

    Map<String, Object> findMap(String processDetailId);

    Map<String, Object> findMap(String processDetailId, String[][] parameters);

    List<ProcessDetail> loadModels();

    List<ProcessDetail> loadModels(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<ProcessDetail> loadModels(String[] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps();

    List<Map<String, Object>> loadMaps(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps(String[][] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    long count();

    long count(String condition, Object[] values);

    long count(String[] parameters, boolean isDistinct);

    long count(String[] parameters, String condition, Object[] values, boolean isDistinct);
    
    long countProcessDetail(String comProcessId, String processName);

	List<Map<String, Object>> getUsageList(String reviewVersionId,
			String competitionName, LimitShowDTO limitShowDTO);
	
	List<Map<String, Object>> findProcessDetail(String comProcessId, String processName, LimitShowDTO limitShowDTO);
}
